idf_component_register(
    SRCS "sd_scanner.c" "main.c"
    INCLUDE_DIRS "."
    REQUIRES fatfs)

if(NOT CONFIG_SOC_SDMMC_HOST_SUPPORTED)
    fail_at_build_time(sdmmc ""
                             "Only ESP32, ESP32-S3 and ESP32-P4 targets are supported."
                             "Please refer README.md for more details")
endif()